package com.example.aicloud.entity;



import com.baomidou.mybatisplus.annotation.IdType;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.experimental.Accessors;

/**
 * (User)表实体类
 *
 * @author makejava
 * @since 2024-07-01 22:00:06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
public class User  {
    //主键@TableId
    @TableId(value = "uid", type = IdType.AUTO)
    private Long uid;

    //用户名
    @NotBlank(message = "用户名不能为空")
    private String username;
    //密码
    @NotBlank(message = "密码不能为空")
    private String password;
    //头像
    private String photo;
    //状态
    private Integer state;
    //创建时间
    private String createtime;
    //修改时间
    private String updatetime;
    //手机号
    private String phone;
    //每天可以使用大模型的次数
    private Integer usecount;



}

